// 系统管理路由
const routers = [
  {
    path: '/web',
    name: '网站管理',
    visible: true,
    icon: 'el-icon-s-tools',
    level: 2,
    component: () => import('../shared/index.vue'),
    children: [
      {
        path: 'user',
        name: '用户管理',
        meta: { parentTitle: '网站管理', title: '用户管理', path: '/web/user', visible: true, keepalive: false },
        component: resolve => require(['../pages/web/user/index.vue'], resolve),
      },
      {
        path: 'userExperiencer',
        name: '体验师管理',
        meta: { parentTitle: '网站管理', title: '体验师管理', path: '/web/userExperiencer', visible: true, keepalive: false },
        component: resolve => require(['../pages/web/userExperiencer/index.vue'], resolve),
      },
      {
        path: 'product',
        name: '产品管理',
        meta: { parentTitle: '网站管理', title: '产品管理', path: '/web/product', visible: true, keepalive: false },
        component: resolve => require(['../pages/web/product/index.vue'], resolve),
      },
      {
        path: 'order',
        name: '订单管理',
        meta: { parentTitle: '网站管理', title: '订单管理', path: '/web/order', visible: true, keepalive: false },
        component: resolve => require(['../pages/web/order/index.vue'], resolve),
      },
      {
        path: 'address',
        name: '收货地址',
        meta: { parentTitle: '网站管理', title: '收货地址', path: '/web/address', visible: true, keepalive: false },
        component: resolve => require(['../pages/web/address/index.vue'], resolve),
      },
      {
        path: 'nav',
        name: '导航管理',
        meta: { parentTitle: '网站管理', title: '导航管理', path: '/web/nav', visible: true, keepalive: false },
        component: resolve => require(['../pages/web/nav/index.vue'], resolve),
      },
      {
        path: 'article',
        name: '老师管理',
        meta: { parentTitle: '网站管理', title: '文章管理', path: '/web/article', visible: true, keepalive: false },
        component: resolve => require(['../pages/web/article/index.vue'], resolve),
      },
      // {
      //   path: 'subject',
      //   name: '学科管理',
      //   meta: { parentTitle: '网站管理', title: '学科管理', path: '/web/subject', visible: true, keepalive: false },
      //   component: resolve => require(['../pages/web/subject/index.vue'], resolve),
      // }
    ]
  }
]

export default routers